import { defineStore } from 'pinia'

export const useSettings = defineStore('settings', {
  state: () => ({
    isMobile: false
  }),
  actions: {
    setDevice() {
      const width = document.body.offsetWidth
      this.isMobile = width <= 900
    }
  }
})
